#include "myStdio.h"


int main()
{
    _FILE* pf = fopen_("log.txt", "w");
    int cnt = 10;
    while(cnt--)
    {
        const char* str = "hello world ";
        fwrite_(str, strlen(str), pf);
        if(cnt == 5)
            fflush_(pf);
        sleep(1);
    }
    fclose_(pf);
    return 0;
}